<template>
  <div class="pingjia">
    <ping-head />
    <div class="pingBox">
      <ping-nav />
      <ping-banner />
      <ping-main />
    </div>
  </div>
</template>

<script>
import PingBanner from "../vivw-com/PingBanner.vue";
import PingHead from "../vivw-com/PingHead.vue";
import PingMain from "../vivw-com/PingMain.vue";
import PingNav from "../vivw-com/PingNav.vue";
import mouth from '../../../../public/utils/mouth'
export default {
  name: "PingJia",
  components: { PingHead, PingNav, PingBanner, PingMain },
    data() {
    return {
      pinglist: [],
      shopid: this.$route.query.id,
    };
  },
  created(){
    this.getP();
    console.log(this.shopid);
  },
  methods:{
    getP(){
      mouth.get("/comments/findAll",{
        params:{
          gid  :"1"
        }
      })
        .then((res) => {
          // this.shopList = res.data;
          console.log(res.data.data);
        })
        .catch((err) => {
          console.log("出错了", err);
        });
    }
  }
};
</script>

<style scoped>
.pingjia {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pingBox {
  flex: 1;
  overflow: auto;
}
</style>